<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'showprofession.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

  </head>
  <script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>
  <script type="text/javascript" src="js/profession.js"></script>
  <body>
  	<table border="1">
  		<tr>
  			<td>班级编号</td>
			<td>班级名</td>
			<td>编辑</td>
  		</tr>
  		<s:iterator value="professions" var="professions">
  			<tr>
  				<td><s:property value="#professions.id"/></td>
  				<td><s:property value="#professions.name"/></td>
  				<td><div onclick="edit(event)" style="color: blue;" proId="<s:property value='#professions.id'/>">编辑</div></td>
  			</tr>
  		</s:iterator>
    </table>
  </body>
</html>
